<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>随机发放水果</title>
	</head>
	<body>
		<script type="text/javascript">
			var fruits=["苹果","香蕉","橘子","柚子","西瓜"];
			var num=Math.floor(Math.random()*5);
			document.write("您得到的水果是"+fruits[num]);
		</script>
	</body>
</html>
